<template>
  <div class="all-right">
    <div class="all-items">
      <p>热门新闻</p>
      <div class="items" v-for="(item, index) in NewHot" :key="index">
        <p>{{ item.title }}</p>
        <span>{{ item.timer }}</span>
      </div>

      <p class="newAbout">相关新闻</p>
      <div class="items" v-for="(item, index) in NewAbout" :key="index">
        <p>{{ item.title }}</p>
        <span>{{ item.timer }}</span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "AllRight",
  props: {
    NewHot: {
      type: Array
    },
    NewAbout: {
      type: Array
    }
  },
  data() {
    return {
     
    };
  },
};
</script>

<style lang="less" scoped>
.all-items>p {
  font-weight: bold;
}
.newAbout {
  margin-top: 30px;
  display: block;
}
.items {
  margin-top: 10px;
  p {
    font-size: 14px;
  }
  span {
    font-size: 14px;
    color: #a4b8d3
  }
}
.all-right {
  width: 40%;
}
</style>